package com.mingzhi.product.service;

import com.mingzhi.product.mapper.ProductMapper;
import com.mingzhi.product.model.ProductInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
public class ProductService {

    @Autowired
    private ProductMapper productMapper;

    public ProductInfo selectProductById(Integer productId) {
        return productMapper.selectProductById(productId);
    }
}
